import Vue from 'vue'
import App from './App.vue'
import router from './router'
import OSS from 'ali-oss'
// import Vconsole from 'vconsole'
import {
  Swipe,
  SwipeItem,
  Lazyload,
  Popup,
  Area,
  Uploader,
  RadioGroup,
  Radio,
  Picker,
  Toast,
  List,
  Cell,
  Loading,
  Dialog,
  PullRefresh,
  NumberKeyboard,
} from "vant"

Vue.config.productionTip = false
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Lazyload)
Vue.use(Popup)
Vue.use(Area)
Vue.use(Uploader)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(Picker)
Vue.use(Toast)
Vue.use(List)
Vue.use(Cell)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(PullRefresh)
Vue.use(NumberKeyboard)

// new Vconsole()

// 上传文件配置
let client = new OSS({
  region: "oss-cn-shanghai",
  accessKeyId: "LTAI4FbxH6EcP8jdV2V4fKQP",
  accessKeySecret: "qgkgTa2yxzX23C6RIHjJVyP7MJ382k",
  bucket: "titika"
})
Vue.prototype.$client = client

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
